package me.shiqiang.im.redis;

/**
 * @author cuishiqiang
 * @date 2017/12/6 下午2:36
 */
public class RedisKey {
    private static final String CS_SEND_QUEUE_PREFIX = "cs.send.queue:";
    public static final String SYNC_KEY = "im.msg.syncKey";
    private static final String IM_USER_SESSION = "im.user.session:";

    public static String csSendQueue(String csId) {
        return CS_SEND_QUEUE_PREFIX + csId;
    }

    private static final String CLIENT_MSG_QUEUE_PREFIX = "client.msg.queue:";
    public static final String GROUP_MSG_QUEUE_PREFIX = "group.msg.queue:";
    public static final String MSG_PUSH_QUEUE = "msg.push.queue";


    public static final String GROUP_USER_SET = "group_user_set:";

    public static String clientMsgQueue(String clientId) {
        return CLIENT_MSG_QUEUE_PREFIX + clientId;
    }

    public static String groupMsgQueue(String groupId) {
        return GROUP_MSG_QUEUE_PREFIX + groupId;
    }

    public static String imUserSession(String userId) {
        return IM_USER_SESSION + userId;
    }

    public static String msgPushQueue() {
        return MSG_PUSH_QUEUE;
    }

    public static String groupUserSet(Long groupId) {
        return GROUP_USER_SET+groupId;
    }

    public static String groupUserSet(String groupId) {
        return GROUP_USER_SET+groupId;
    }
}
